'use strict';

complaintsService.$inject = ['$http'];

function complaintsService($http) {

  return {
      gets: gets,
      updateStatus: updateStatus,
  }

  function updateStatus(complaints){
      return $http.post("/a/complaints/modify",complaints);
  }

  function gets() {
      return $http.get("/a/complaints/gets");
  }
}

module.exports = complaintsService;